import os

path=os.path.dirname(__file__)

for fa,dir,files in os.walk(path):
    for file in files:
        if file.endswith(".png") and file.startswith("image"):
            fa_path=os.path.dirname(fa)
            new_name="洪水填充四邻域-"+file
            print(f"{file} -> {new_name}")
            os.rename(os.path.join(fa,file),os.path.join(fa,new_name))